<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>用什么来做计算</title>
    <link rel="stylesheet" href="./css/style.css" />
  </head>
  <body>
    <div class="calculator">
      <!--结果-->
      <div class="calc-row">
        <input type="text" name="formula" id="formula" readonly />
        <input type="text" name="result" id="result" readonly />
      </div>
      <!--第一行-->
      <div class="calc-row">
        <div class="calc-button" id="left-bracket">(</div>
        <div class="calc-button" id="right-bracket">)</div>
        <div class="calc-button" id="sqrt">√</div>
        <div class="calc-button" id="reset">AC</div>
      </div>
      <!--第二行-->
      <div class="calc-row">
        <div class="calc-button" id="seven">7</div>
        <div class="calc-button" id="eight">8</div>
        <div class="calc-button" id="nine">9</div>
        <div class="calc-button" id="division">÷</div>
      </div>
      <!--第三行-->
      <div class="calc-row">
        <div class="calc-button" id="four">4</div>
        <div class="calc-button" id="five">5</div>
        <div class="calc-button" id="six">6</div>
        <div class="calc-button" id="multiply">x</div>
      </div>
      <!--第四行-->
      <div class="calc-row">
        <div class="calc-button" id="one">1</div>
        <div class="calc-button" id="two">2</div>
        <div class="calc-button" id="three">3</div>
        <div class="calc-button" id="reduce">-</div>
      </div>
      <!--第五行-->
      <div class="calc-row">
        <div class="calc-button" id="zero">0</div>
        <div class="calc-button" id="decimal">.</div>
        <div class="calc-button" id="equal">=</div>
        <div class="calc-button" id="add">+</div>
      </div>
    </div>
    <script src="./js/index.js"></script>
  </body>
</html>
